<?php 
$adminId=$_SESSION['admin_id'];
$sql="SELECT * from wd_admin where admin_id=$adminId";
$adminName=$db->getOne($sql);